﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using QMERP.Domain.Entities;

namespace QMERP.Infrastructure.EFCore.Mappings
{
    public class PrivilegeMapping : IEntityTypeConfiguration<Privilege>
    {
        public void Configure(EntityTypeBuilder<Privilege> builder)
        {
            builder.Property(x => x.Master).HasMaxLength(50);
            builder.Property(x => x.MasterValue);
            builder.Property(x => x.Access).HasMaxLength(50);
            builder.Property(x => x.AccessValue);
            builder.Property(x => x.Operation);
        }
    }
}
